import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class LoginBean {
  String recordBh;
  String loginName;
  String nickName;
  String sex;
  String phone;
  String photo;
  String password;
  int enrollDate;
  int lastLoginDate;
  String lastLoginModel;

  LoginBean(
      {this.recordBh,
      this.loginName,
      this.nickName,
      this.sex,
      this.phone,
      this.photo,
      this.password,
      this.enrollDate,
      this.lastLoginDate,
      this.lastLoginModel});

  LoginBean.fromJson(Map<String, dynamic> json) {
    recordBh = json['recordBh'];
    loginName = json['loginName'];
    nickName = json['nickName'];
    sex = json['sex'];
    phone = json['phone'];
    photo = json['photo'];
    password = json['password'];
    enrollDate = json['enrollDate'];
    lastLoginDate = json['lastLoginDate'];
    lastLoginModel = json['lastLoginModel'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['recordBh'] = this.recordBh;
    data['loginName'] = this.loginName;
    data['nickName'] = this.nickName;
    data['sex'] = this.sex;
    data['phone'] = this.phone;
    data['photo'] = this.photo;
    data['password'] = this.password;
    data['enrollDate'] = this.enrollDate;
    data['lastLoginDate'] = this.lastLoginDate;
    data['lastLoginModel'] = this.lastLoginModel;
    return data;
  }
}
